package com.sg.controller.rbff;

import com.sg.service.biz.rbff.OssService;
import com.sg.dto.biz.rbff.req.*;
import com.sg.dto.biz.rbff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "Oss", tags = {"Oss"})
@RestController
// @RequestMapping("/rbff/oss/")
public class OssController {

    @Autowired
    OssService ossService;

    /**
     * B2查询对象存储临时令牌详情
     * gen by moon at 11/22/2024, 11:30:31 AM
     */
    @PostMapping("/oms/dataassets/oss/queryObjectStorageTemporaryCredentialsDetail")
    @ApiOperation(value = "B2查询对象存储临时令牌详情", response = OkrResult.class)
    public OkrResult<BffQueryObjectStorageTemporaryCredentialsDetailRespDto> queryObjectStorageTemporaryCredentialsDetail(@RequestBody(required = false) @Validated BffQueryObjectStorageTemporaryCredentialsDetailReqDto reqDTO) {
        return OkrResult.success(ossService.queryObjectStorageTemporaryCredentialsDetail(reqDTO));
    }
}
